package org.znxs.znagent_s.demo;

import lombok.Getter;
import org.springframework.ai.chat.client.ChatClient;
import org.springframework.stereotype.Service;

@Service
@Getter
/**
 * 通过 构造器自动注入，方便后续调用
 */
public class ChatService {

    private final ChatClient chatClient;

    public ChatService(ChatClient.Builder builder) {
        this.chatClient = builder
                .defaultSystem("你是恋爱顾问")
                .build();
    }
}